#encoding=utf8
from django.contrib.auth import *
from django.contrib.auth.models import *
from django.http import *
from django.shortcuts import *
from utils.utils import *
import json


def main(request):
	data = {
		"pid": request.GET['p'],
		"etype": "N",
		"type": "I",
		"src":"http://d189.mzhen.cn/static/trp/images/logo.jpg",
 		"adw":170,
 		"adh":60,
 		"pm":{"0":["http://d189.mzhen.cn/a.gif/?a=664&p=1&r=1&s=13245&m=21983&u=&t=1404130866978&b=1.1&i=123.103.21.88&d=0"]},
 		"cm":[],
 		"ldp":"http://d189.mzhen.cn/r.gif/?a=664&p=1&r=1&s=13245&m=21983&u=&t=1404130866978&b=1.1&i=123.103.21.88&d=0&o=http://www.baidu.com"
	}

	

	content = json.dumps([data, data])
	response = HttpResponse(request.GET['c'] + '(' + content + ');')
	response['Content-Type'] = 'application/json'
	response['Connection'] = 'close'
	return response
